
global inbyte
inbyte:
push ebp;
mov ebp,esp;
mov dx,[ebp+8];
xor eax,eax;
in al,dx;
leave;
ret;


global inword
inword:
push ebp;
mov ebp,esp;
mov dx,[ebp+8];
xor eax,eax;
in ax,dx;
leave;
ret;


global outbyte
outbyte:
push ebp;
mov ebp,esp;
mov dx,[ebp+8];
xor eax,eax;
mov al,[ebp+12];
out dx,al;
xor eax,eax;
leave;
ret;




global outword
outword:
push ebp;
mov ebp,esp;
mov dx,[ebp+8];
xor eax,eax;
mov ax,[ebp+12];
out dx,ax;
xor eax,eax;
leave;
ret;


